package action.ManagerAction;

import com.opensymphony.xwork2.ActionSupport;
import org.springframework.beans.factory.annotation.Autowired;
import service.CroMenusService;
import service.CroUserService;
import vo.ShowMenuVo;

import java.util.List;

/**
 * Created by xuweijie on 17-5-3.
 */
public class AdminAction extends ActionSupport {

    @Autowired
    private CroMenusService croMenusService;
    private List<ShowMenuVo> showMenuVos;

    /**
     * 显示后台导航栏
     * */
    public String showMenu(){
        showMenuVos=croMenusService.SortMenu();
        return SUCCESS;
    }

    public List<ShowMenuVo> getShowMenuVos() {
        return showMenuVos;
    }

    public void setShowMenuVos(List<ShowMenuVo> showMenuVos) {
        this.showMenuVos = showMenuVos;
    }
}
